package org.edu.modules.sbzc.place.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-场地类型
 */
@TableName("ve_sbzc_cd_category")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="场地类型对象", description="ve_sbzc_cd_category")
public class VeSbzcCdCategory extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "代码")
    @Length(max = 30)
    private String code;

    @TableField
    @ApiModelProperty(value = "名称")
    @Length(max = 30)
    private String name;

    @TableField
    @ApiModelProperty(value = "排序标识")
    private Integer listSort;

    @TableField
    @ApiModelProperty(value = "父ID")
    private Integer pid;

    @TableField
    @ApiModelProperty(value = "1开启，0禁用")
    private Integer status;
}
